package com.xxzx.publicprevention.service;

import com.xxzx.publicprevention.pojo.RecordDO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyu
 * @since 2020-11-04
 */
public interface RecordService extends IService<RecordDO> {

    Integer saveRecord(RecordDO recordDO);

    List<RecordDO> getRecordByUserId(Integer id,Integer beginNum, Integer rowCount, String timeBegin, String timeEnd);

    List<RecordDO> getRecordByUserIdAndDetail(Integer id,Integer beginNum, Integer rowCount, String detail);

    List<RecordDO> getAllRecord();

    List<RecordDO> getRecordByType(int type);

    void editRecord(RecordDO recordDO);

    RecordDO getRecordById(Integer id);

    List<RecordDO> getRecordByPage(Integer curr, Integer size);

    List<RecordDO> getRecordByPageAndType(Integer curr, Integer size, Integer type);

    int getCount();

}
